package org.wlgzs.shop.service;

import org.springframework.web.multipart.MultipartFile;
import org.wlgzs.shop.bean.Msg;
import org.wlgzs.shop.bean.UserDate;

import javax.mail.Session;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.util.List;

public interface IUserDateService {
     //增加用户信息Service层接口
     boolean registeredInsertService(UserDate userDate);
     //根据id查询用户信息Service层接口
     UserDate registeredSelectService(int userId);
     //根据账号的来查询用户信息
     UserDate userAccountSelectUser(String account);
     //用户登陆
     boolean loginUser(UserDate userDate, HttpSession session);
     //根据账号确定用户后修改密码
     Msg setUserPassword(UserDate date);
     //根据密保问题来获取用户密码
     Msg getPass(String account,String answer,int problemId );
     //发送邮件
     Boolean sentEmail(HttpSession session,String post);
     //根据用户id查询用户信息
//     List<UserDate> selectUserId(int userId);
     //获取所有的用户信息
     List<UserDate> allUser();
     //上传文件
     Msg upLoad(MultipartFile files, HttpSession session, HttpServletRequest request) throws IOException;
     //添加订单接口
     Msg addOrder(List<String> date);
     //修改积分
     Msg setPoint(UserDate date);
     //根据名称查询
     List selectSameName(String name);
     //多文件上传
     Msg fewFileUp(MultipartFile[] files,HttpSession session, HttpServletRequest request,String twoKind) throws IOException;
     //多文件上传2
     String allFileUp(MultipartFile[] files,HttpSession session, HttpServletRequest request) throws IOException;
     //单文件上传
     String oneFilep(MultipartFile file,HttpSession session, HttpServletRequest request) throws IOException;
}
